home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1997 / HAM Radio 1997.iso / vcls / wfc007.000 / include / sockfile.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-08  |  762 b   |  31 lines

  1. #ifndef SIMPLE_SOCKET_FILE_CLASS_HEADER
  2.  
  3. /*
  4. ** Author: Samuel R. Blackburn
  5. ** CI$: 76300,326
  6. ** Internet: sammy@sed.csc.com
  7. **
  8. ** You can use it any way you like.
  9. */
  10.  
  11. #define SIMPLE_SOCKET_FILE_CLASS_HEADER
  12.  
  13. class CSimpleSocketFile : public CSimpleSocket
  14. {
  15.    public:
  16.  
  17.       CSimpleSocketFile( SOCKET client_id, const char *host_name, const char *dotted_ip_address_string );
  18.  
  19.       /*
  20.       ** Destructor should be virtual according to MSJ article in Sept 1992
  21.       ** "Do More with Less Code:..."
  22.       */
  23.  
  24.       virtual ~CSimpleSocketFile();
  25.  
  26.       virtual BOOL Open( void );
  27.       virtual BOOL Open( const char *channel_name, UINT port_number = 23, CFileException* pError = NULL );
  28. };
  29.  
  30. #endif // SIMPLE_SOCKET_FILE_CLASS_HEADER
  31.